#字符串格式化

print("Hello {1} and {0}".format("1", "2"))
print("Hello {} and {}".format("1", "2"))

one = "1"
two = "2"

print(f"hello {one} and {two}")


#错误处理

try:
    a = 0
except ZeroDivisionError as e:
    print(e)
except Exception as e:
    print(e)
finally:
    print('finally')